﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace RedisDemo.Models
{
    public class Product
    {
        [DisplayName("编号")]
        public int ProductId { get; set; }
        [DisplayName("名称")]
        public string ProductName { get; set; }
        [DisplayName("类别")]
        public int CategoryId { get; set; }
        [DisplayName("价格")]
        [DisplayFormat(DataFormatString = "{0:C}")]
        public decimal? ProductPrice { get; set; }
        [DisplayName("库存")]
        public int? Stock { get; set; }
        [DisplayName("描述")]
        public string ProductDesc { get; set; }
    }
}
